# Contributor: Henrik Holst <henrik.holst@millistream.com>
# Maintainer:
pkgname=libmdf
pkgver=1.0.27
pkgrel=0
pkgdesc="Millistream Data Feed API library"
url="https://millistream.com"
arch="all !ppc64le" # Fails to fetch on builders
license="LGPL-3.0-or-later"
makedepends="
	openssl-dev>3
	zlib-dev
	zstd-dev
	"
subpackages="$pkgname-dev"
source="https://packages.millistream.com/source/libmdf-$pkgver.tar.gz"

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fdcd148d4abb3914c90cf5ddc9ea4b0bb47b79b4c631d3ca4559137a39a670c955669be0893255a10268a0f4ec9dfa3c206d9fdf09f607e119edef5adaefe203  libmdf-1.0.27.tar.gz
"
